<div class="bg-light lter b-b wrapper-md">
    <h1 class="m-n font-thin h3">特殊产品管理</h1>
</div>

<div class="wrapper-md">
    <div class="panel panel-default">
        <div class="panel-heading">
            投资借款人管理
        </div>
        <toaster-container toaster-options="{'position-class': 'toast-center', 'close-button':true}"></toaster-container>
        <div class="panel-body b-b b-light">
            <p>
                角色:<select name="" id="" class="form-control input-sm w-sm inline m-r" ng-model="BorrData.UserType">
                <option value="0">投资人</option>
                <option value="2">借款人</option>
            </select>
             ID: <input id="filter" type="text" ng-model="BorrData.UserId " class="form-control input-sm w-sm inline m-r">                
             姓名: <input id="filter" type="text" ng-model="BorrData.FullName" class="form-control input-sm w-sm inline m-r">                
             电话: <input id="filter" type="text" ng-model="BorrData.UserName" class="form-control input-sm w-sm inline m-r">
                <button class="btn btn-info btn-addon" ng-if='!graybtn' ng-click="queryBorr()">查询</button>
                <button class="btn btn-light btn-addon" ng-if='graybtn'>查询</button>
            </p>
            <p>
                <input id="filter" type="text" ng-model="addBorrMoblie" class="form-control input-sm w-sm inline m-r" maxlength="11" placeholder="请输入手机号">
                <select name="" id="" class="form-control input-sm w-sm inline m-r" ng-model="usertype">
                <option value="0">投资人</option>
                <option value="2">借款人</option>
            </select>
                <button class="btn btn-info btn-addon" ng-click="addBorr()">添加</button>
            </p>
        </div>
        <div class="table-responsive">
            <table id="tab" class="table table-striped m-b-none">
                <thead>
                    <tr>
                        <th style="min-width: 25px">ID</th>
                        <th style="min-width: 50px">姓名</th>
                        <th style="min-width: 50px">角色</th>
                        <th style="min-width: 50px">电话</th>
                        <th style="min-width: 80px">身份证</th>
                        <th style="min-width: 100px">创建时间</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody>
                    <tr ng-if="BorrList==''">
                        <td colspan="9">当前无任何数据</td>
                    </tr>
                    <tr ng-repeat="obj in BorrList">
                        <td ng-bind="obj.userId"></td>
                        <td ng-bind="obj.fullName"></td>
                        <td ng-bind="obj.userType?'借款人':'投资人'"></td>
                        <td ng-bind="obj.userName"></td>
                        <td ng-bind="obj.idCard"></td>
                        <td ng-bind="obj.createTime|date:'yyyy-MM-dd HH:mm:ss'"></td>
                        <td><button class="btn m-b-xs btn-sm btn-info" ng-click="delete(obj.userId)">删除</button></td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
    <div class="btn-group pull-right">
        <button type="button" class="btn btn-default" ng-click="prev()"><font><font>上一页</font></font></button>
        <button type="button" class="btn btn-default btnNum">{{BorrData.Index}}</button>
        <button type="button" class="btn btn-default" ng-click="next()"><font><font>下一页</font></font></button>
        <span class="btn btn-default">共<span ng-bind="BorrListCount+'条数据'"></span></span>
    </div>